package com.test.dao;

import org.springframework.data.jpa.repository.Query;
import org.springframework.stereotype.Repository;

import com.test.model.Person;

@Repository
public interface PersonDao extends IDao<Person, String> {

	public Person findById(String id);

	@Query("select person from Person person where person.identityNumber=?1")
	public Person findOneByIdentityNumber(String identityNumber);

	public Person findByIdentityNumberAndId(String identityNumber, String id);

}
